package cn.jy.service.Impl;

import cn.jy.mapper.AdminMapper;
import cn.jy.pojo.Administrators;
import cn.jy.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper adminMapper;
    @Override
    public List<Administrators> Administratorsgly() {
        return adminMapper.Administratorsgly();
    }

    @Override
    public int updateState(Integer state, Integer id) {
        return adminMapper.updateState(state,id);
    }
}
